Adding 0.0.0.0 as the interface to bind, as it seems rails 4.2 changed the default behavior

gissehel 9 年 前
コミット
d8434803f3
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      docker/scripts/init

+ 1 - 1
docker/scripts/init

@@ -150,7 +150,7 @@ source /app/.env
150 150
 
151 151
 # Fixup the Procfile and prepare the PORT
152 152
 [ -n "\${DO_NOT_RUN_JOBS}" ] && perl -pi -e 's/^jobs:/#jobs:/' /app/Procfile
153
-perl -pi -e 's/rails server\$/rails server -p \\\$PORT/' /app/Procfile
153
+perl -pi -e 's/rails server\$/rails server -b 0.0.0.0 -p \\\$PORT/' /app/Procfile
154 154
 export PORT
155 155
 
156 156
 # Start huginn